import os
import yaml

class YamlUtils():
    def readYaml(self):
        f=open(os.getcwd()+"/data/token.yaml","r+")
        s=yaml.load(f,Loader=yaml.Loader)
        f.close()
        return s

    def writeYaml(self,data):
        f=open(os.getcwd()+"/data/token.yaml","w+")
        ls=data
        yaml.dump(ls,f)
        f.close()